Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Voicemail messages shouldn't save on timeout. #48

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

emcgee
Copy link

@emcgee emcgee commented May 31, 2016

Currently if a caller reaches the recording_menu and then times out, the save_recording method is fired once per loop.

This both defeats the purpose of giving them a timeout - since the voicemail is now saved anyway! - and results in duplicate voicemails being saved until the call is hungup or it fails after the third retry (at which point, a fourth voicemail is saved from failure).

A frequent cause of this condition, at least in wireless, is accidental pocket dialing.

Currently if a caller reaches the recording_menu and times out, the save_recording method is fired once /per/ loop. This results in duplicate voicemails being saved until the call is hungup or it fails after the third retry. A frequent cause of this condition, at least in wireless, is accidental pocket dialing.
@emcgee emcgee changed the title Voicemail messages shouldn't save on timeout or failure. Voicemail messages shouldn't save on timeout. May 31, 2016
@bklang
Copy link
Member

bklang commented May 31, 2016

Any chance you can add a spec to show that the call to save the recording is only called once?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants